package com.hoku.gateway;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.security.oauth2.client.EnableOAuth2Sso;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;

/**
 * zuul服务器端反向代理，代理服务器端接口，类似nginx. zuul会自动将token传递给下游服务
 * EnableOAuth2Sso = [EnableOAuth2Client, OAuth2AutoConfig] 具体查看EnableOAuth2Sso注释
 * @author ZHUFEIFEI
 */
@EnableOAuth2Sso
@EnableZuulProxy
@SpringCloudApplication
public class GatewayApplication {
    public static void main(String[] args) {
        SpringApplication.run(GatewayApplication.class, args);
    }
}
